import request from '@/utils/request'

// 查询稽核专案维护列表
export function listMaintenance(query) {
  return request({
    url: '/project/maintenance/list',
    method: 'get',
    params: query
  })
}

// 查询稽核专案维护详细
export function getMaintenance(auditId) {
  return request({
    url: '/project/maintenance/' + auditId,
    method: 'get'
  })
}

// 新增稽核专案维护
export function addMaintenance(data) {
  return request({
    url: '/project/maintenance',
    method: 'post',
    data: data
  })
}

// 修改稽核专案维护
export function updateMaintenance(data) {
  return request({
    url: '/project/maintenance',
    method: 'put',
    data: data
  })
}

// 删除稽核专案维护
export function delMaintenance(auditId) {
  return request({
    url: '/project/maintenance/' + auditId,
    method: 'delete'
  })
}

// 导出稽核专案维护
export function exportMaintenance(query) {
  return request({
    url: '/project/maintenance/export',
    method: 'get',
    params: query
  })
}

export function MaintenanceOption(data) {
  return request({
    url: '/project/maintenance/list/project',
    method: 'get',
    data: data
  })
}

export function MaintenanceboxOption(data) {
  return request({
    url: '/project/maintenance/list/project/box',
    method: 'get',
    params: data
  })
}

export function MaintenancelebOption(data) {
  return request({
    url: '/project/maintenance/list/project/leb',
    method: 'get',
    params: data
  })
}